1.in運算子:可以利用它來檢查字串中是否有我們指定的字串在其中,如下。
>>>"go" in "good" True
2.not in運算子:與in運算子相反,可以利用它來檢查字串中是否沒有我們指定的字串在其中,如下。
>>>"go" not in "good" False
Copyright © All rights reserved | This template is made with by Colorlib